package rs.etf.es.algorithm;

import java.io.Serializable;

public class Instantiation implements Serializable {

    private static Double PROBABILITY_ONE = new Double(1);

    private String variableName;
    private String variableValue;
    private Double probability;

    public Instantiation(String variableName, String variableValue, Double probability) {
	this.variableName = variableName;
	this.variableValue = variableValue;
	this.probability = probability;
    }

    public Instantiation(String variableName, String variableValue) {
	this(variableName, variableValue, PROBABILITY_ONE);
    }

    public String getVariableName() {
	return variableName;
    }

    public void setVariableName(String variableName) {
	this.variableName = variableName;
    }

    public String getVariableValue() {
	return variableValue;
    }

    public void setVariableValue(String variableValue) {
	this.variableValue = variableValue;
    }

    public Double getProbability() {
	return probability;
    }

    public void setProbability(Double probability) {
	this.probability = probability;
    }

}
